/**
 * vux组件全局引入配置
 */
import Vue from 'vue'

import  { AlertPlugin } from 'vux'
Vue.use(AlertPlugin);

import  { ToastPlugin } from 'vux'
Vue.use(ToastPlugin)

import  { ConfirmPlugin } from 'vux'
Vue.use(ConfirmPlugin)

// 按钮
import { XButton } from 'vux'
Vue.component('x-button', XButton);

// 顶部标题栏
import { XHeader } from 'vux'
Vue.component('x-header', XHeader)

import { Previewer, TransferDom } from 'vux'
Vue.component('previewer', Previewer)
Vue.directive('transfer-dom', TransferDom)

import { Tab, TabItem } from 'vux'
Vue.component('tab', Tab)
Vue.component('tab-item', TabItem)

import { Group, Cell, Radio } from 'vux'
Vue.component('cell', Cell);
Vue.component('group', Group);
Vue.component('group', Radio);

import { CellBox, Box, Badge } from 'vux'
Vue.component('cell-box', CellBox)
Vue.component('box', Box)
Vue.component('badge', Badge)

import {Tabbar, TabbarItem} from 'vux'
Vue.component('tabbar', Tabbar)
Vue.component('tabbar-item', TabbarItem)

import { Icon, Toast, LoadingPlugin } from 'vux'
Vue.component('icon', Icon)
Vue.component('toast', Toast)
Vue.use(LoadingPlugin)

import { XInput } from 'vux'
Vue.component('x-input', XInput)

import { Flexbox, FlexboxItem, Divider } from 'vux'
Vue.component('flexbox', Flexbox)
Vue.component('flexbox-item', FlexboxItem)
Vue.component('divider', Divider)

import { XNumber, XSwitch, Checklist, CheckIcon,XTextarea, FormPreview } from 'vux'
Vue.component('x-number', XNumber)
Vue.component('x-switch', XSwitch)
Vue.component('checklist', Checklist)
Vue.component('check-icon', CheckIcon)
Vue.component('x-textarea', XTextarea)
Vue.component('form-preview', FormPreview)

import { XAddress } from 'vux'
Vue.component('x-address', XAddress)
